function testForEach(){
    ['width', 'height'].forEach((element,index) => {
        console.log(index)
    });
}

console.log(testForEach())